home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Completions / Completions Source / Tasks / Task.cp < prev    next >
Encoding:
Text File  |  1998-06-11  |  260 b   |  20 lines  |  [TEXT/CWIE]

  1. // Task.cp
  2.  
  3. #ifndef Task_h
  4. #include "Task.h"
  5. #endif
  6. #ifndef TaskLife_h
  7. #include "TaskLife.h"
  8. #endif
  9.  
  10. void Task::Complete()
  11.   {
  12.     TaskLife *life = this->life;
  13.     
  14.     Assert( life != 0 );
  15.     Assert( life->task == this );
  16.     
  17.     this->life = 0;
  18.     life->QueueCompletor();
  19.   }
  20.